package com.slmxz.tms.document.service;

import com.slmxz.tms.common.model.Option;
import com.slmxz.tms.document.model.entity.Customer;
import com.slmxz.tms.document.model.vo.CustomerVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 客户服务类
 * @author sunyao
 * @Date 2024-11-09
 */
public interface CustomerService extends IService<Customer> {

    /**
     *客户分页列表
     *
     * @return
     */
    IPage<CustomerVO> selectCustomerPage(IPage<CustomerVO> page, CustomerVO customer);

    /**
     * 客户下拉框
     * @param customer
     * @return
     */
    List<Option<String>> selectOption(CustomerVO customer);

    /**
     * @param id 客户ID
     * @return
     */
     CustomerVO selectCustomerDetail(Long id);

    /**
     * 新增客户
     * @return
     */
    boolean saveCustomer(CustomerVO customer);

    /**
     * 修改客户
     * @return
     */
    boolean updateCustomer(CustomerVO customer);

    /**
     * 删除客户
     *
     * @param ids 客户ID，多个以英文逗号(,)分割
     * @return
     */
    boolean deleteCustomers(String ids);

    /**
   * 激活或者注销
   * @return
   */
    boolean activeOrLogout(CustomerVO customer);

}
